package net.bolue.sysmng.tblbean;

import java.util.Iterator;
import java.util.Map;
import java.util.Set;

/**
 * 组合维护基本资源
 * @author Administrator
 *
 */
public class MdbopRes extends TableBean{

	/**
	 * 子系统
	 */
	private String subSys;
	
	/**
	 * 组合维护标识
	 */
	private String mdbopId;
	
	/**
	 * 组合维护描述
	 */
	private String resDesc;
	
	/**
	 * 表单类型
	 * 1:普通表单
	 * 2：上传表单
	 */
	private Integer formType;
	
	/**
	 * 下级页面URL
	 */
	private String nextUrl;
	
	/**
	 * 排列格式
	 */
	private String arrayFmt;
	
	/**
	 * 业务类名
	 */
	private String busiClass;
	
	/**
	 * 业务方法名
	 */
	private String busiMethod;
	
	/**
	 * 备注
	 */
	private String remark;
	
	public String getSubSys() {
		return subSys;
	}

	public void setSubSys(String subSys) {
		this.subSys = subSys;
	}

	public String getMdbopId() {
		return mdbopId;
	}

	public void setMdbopId(String mdbopId) {
		this.mdbopId = mdbopId;
	}

	public String getResDesc() {
		return resDesc;
	}

	public void setResDesc(String resDesc) {
		this.resDesc = resDesc;
	}

	public Integer getFormType() {
		return formType;
	}

	public void setFormType(Integer formType) {
		this.formType = formType;
	}

	public String getNextUrl() {
		return nextUrl;
	}

	public void setNextUrl(String nextUrl) {
		this.nextUrl = nextUrl;
	}

	public String getArrayFmt() {
		return arrayFmt;
	}

	public void setArrayFmt(String arrayFmt) {
		this.arrayFmt = arrayFmt;
	}

	public String getBusiClass() {
		return busiClass;
	}

	public void setBusiClass(String busiClass) {
		this.busiClass = busiClass;
	}

	public String getBusiMethod() {
		return busiMethod;
	}

	public void setBusiMethod(String busiMethod) {
		this.busiMethod = busiMethod;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public TableBean mapToEntry(Map<String, Object> map) {
		MdbopRes mdbopRes = new MdbopRes();
		Set<String> keySet = map.keySet();
		Iterator<String> keyIt = keySet.iterator();
		while(keyIt.hasNext()){
			String key = keyIt.next();
			Object o = map.get(key);
			if("SUBSYS".equals(key)){
				mdbopRes.setSubSys((String)o);
			} else if("MDBOPID".equals(key)){
				mdbopRes.setMdbopId((String)o);
			} else if("RESDESC".equals(key)){
				mdbopRes.setResDesc((String)o);
			} else if("FORMTYPE".equals(key)){
				mdbopRes.setFormType((Integer)o);
			} else if("NEXTURL".equals(key)){
				mdbopRes.setNextUrl((String)o);
			} else if("ARRAYFMT".equals(key)){
				mdbopRes.setArrayFmt((String)o);
			} else if("BUSICLASS".equals(key)){
				mdbopRes.setBusiClass((String)o);
			} else if("BUSIMETHOD".equals(key)){
				mdbopRes.setBusiMethod((String)o);
			} else if("REMARK".equals(key)){
				mdbopRes.setRemark((String)o);
			}
		}
		return mdbopRes;
	}

	@Override
	public String keyProps() {
		return "SUBSYS,MDBOPID";
	}

}
